<?php

include '../../../configuration.php';

$name = $_POST['name'];
$sname = $_POST['surname'];
$login = $_POST['login'];
$email = $_POST['email'];
$password = md5($_POST['password']);
$group = $_POST['group'];

mysql_query("INSERT INTO `users` ( id, u_name, u_surname, group_id, u_email, u_login, u_password, u_registerdate) VALUES (null, '$name', '$sname', '$group', '$email', '$login', '$password', now())");

header('Location: add_new_user.php');

?>